package mythread.demo001;

public class MyThread4 extends Thread {

    int i=5;
    String name;
    public MyThread4(String name){
        super();
        this.name = name;
    }

    @Override
    public void run() {
       super.run();;
       while (i>0){
           i--;
           System.out.println(Thread.currentThread().getName()+"-"+ i);
       }
    }


}
